﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="QUNhomQuyenByToChuc_Edit.ascx.cs" Inherits="DemoExtNet.PhanQuyen.UserControls.QUNhomQuyenByToChuc_Edit" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<ext:Hidden ID="__NhomQuyenByToChucId" runat="server" Text=""></ext:Hidden>
<ext:Window ID="wdNhomQuyenByToChuc_Edit" runat="server" Modal="true" Width="420" AutoHeight="true"
     Hidden="true" Resizable="false">
     <Content>
        <div style="width:100%; background-color:White;padding:10px;">
            <table width="380" >
                <tr>
                    <td><b>Tên Nhóm Quyền (Tổ Chức)</b></td>
                    <td><ext:TextField ID="txtTenNhomQuyenByToChuc" runat="server" Width="200"></ext:TextField></td>
                </tr>
                <tr>
                    <td><b>Ghi Chú</b></td>
                    <td><ext:TextField ID="txtGhiChu" runat="server" Width="200"></ext:TextField></td>
                </tr>
                <tr>
                    <td colspan="2" align="right">
                        <table>
                            <tr>
                                <td>
                                    <ext:Button ID="btnSave" runat="server" Text="Save" Icon="Disk" ToggleGroup="Button">
                                        <DirectEvents>
                                            <Click OnEvent="btnSave_Click" />
                                        </DirectEvents>
                                        <Listeners>
                                            <Click Handler="
                                                if(#{txtTenNhomQuyenByToChuc}.getValue().trim()=='')
                                                {
                                                    Ext.MessageBox.alert('Message', 'Xin vui lòng nhập Tên Nhóm Quyền !');
                                                    #{txtTenNhomQuyenByToChuc}.focus();
                                                    return false;
                                                }
                                            " />
                                        </Listeners>
                                    </ext:Button>
                                </td>
                                <td style="width: 10px;">
                                </td>
                                <td>
                                    <ext:Button ID="btnClose" runat="server" Text="Close" Icon="Cancel" ToggleGroup="Button">
                                        <Listeners>
                                            <Click Handler="#{wdNhomQuyenByToChuc_Edit}.hide();" />
                                        </Listeners>
                                    </ext:Button>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
     </Content>
    </ext:Window>